package com.dmgis.hndz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 地质因子显示参数表
 * @TableName ybab01c
 */
@TableName(value ="ybab01c")
@Data
public class Ybab01c implements Serializable {
    /**
     * ID号
     */
    @TableField(value = "ybab01c010")
    private String ybab01c010;

    /**
     * 因子索引
     */
    @TableField(value = "ybab01c020")
    private String ybab01c020;

    /**
     * 数值
     */
    @TableField(value = "ybab01c030")
    private String ybab01c030;

    /**
     * 颜色值
     */
    @TableField(value = "ybab01c040")
    private String ybab01c040;

    /**
     * 模型编号
     */
    @TableField(value = "ybab01c050")
    private String ybab01c050;

    /**
     * 行政区划
     */
    @TableField(value = "ybab01c060")
    private String ybab01c060;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ybab01c other = (Ybab01c) that;
        return (this.getYbab01c010() == null ? other.getYbab01c010() == null : this.getYbab01c010().equals(other.getYbab01c010()))
            && (this.getYbab01c020() == null ? other.getYbab01c020() == null : this.getYbab01c020().equals(other.getYbab01c020()))
            && (this.getYbab01c030() == null ? other.getYbab01c030() == null : this.getYbab01c030().equals(other.getYbab01c030()))
            && (this.getYbab01c040() == null ? other.getYbab01c040() == null : this.getYbab01c040().equals(other.getYbab01c040()))
            && (this.getYbab01c050() == null ? other.getYbab01c050() == null : this.getYbab01c050().equals(other.getYbab01c050()))
            && (this.getYbab01c060() == null ? other.getYbab01c060() == null : this.getYbab01c060().equals(other.getYbab01c060()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYbab01c010() == null) ? 0 : getYbab01c010().hashCode());
        result = prime * result + ((getYbab01c020() == null) ? 0 : getYbab01c020().hashCode());
        result = prime * result + ((getYbab01c030() == null) ? 0 : getYbab01c030().hashCode());
        result = prime * result + ((getYbab01c040() == null) ? 0 : getYbab01c040().hashCode());
        result = prime * result + ((getYbab01c050() == null) ? 0 : getYbab01c050().hashCode());
        result = prime * result + ((getYbab01c060() == null) ? 0 : getYbab01c060().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ybab01c010=").append(ybab01c010);
        sb.append(", ybab01c020=").append(ybab01c020);
        sb.append(", ybab01c030=").append(ybab01c030);
        sb.append(", ybab01c040=").append(ybab01c040);
        sb.append(", ybab01c050=").append(ybab01c050);
        sb.append(", ybab01c060=").append(ybab01c060);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}